<template>
<div>
      <van-nav-bar
  title="个人中心"
  left-text="返回"
  left-arrow
  @click-left="$router.back()"
/>
<PostItem v-for="item in list" :key="item.id" :postData="item"/>
</div>
</template>

<script>
import PostItem from '@/components/myframe/PostItem'
import { getStarList } from '@/api'
export default {
    components:{
      PostItem
    },
    data () {
      return {
        list:[]
      }
    },
    mounted(){
      getStarList().then((res)=>{
        console.log(res);
        this.list=res.data.data.map((item)=>{
          return{
            ...item,
            comment_length:item.comment_length
          }
        })
      })
    }
    
}
</script>

<style>

</style>